# -*- coding:utf-8 -*-
#Author LJ 
#Mail:admin@attacker.club
#Site:blog.attacker.club
#description

family = ['Mon','Dad','bady']
LuckyNumber = [1,7,9,0.1,0.2,0.3,2,23,24]

print  ("切片打印整个列表",family[:])
print  ("在第3个前结束",family[:2])


print  ("从9-2数字之间切",LuckyNumber[2:7])
print  ("从第3个开始切片",LuckyNumber[2:])



print ("打印列表切片",LuckyNumber[2:4],type(LuckyNumber[2:4]))
print ("打印列表中的元素",LuckyNumber[3],type(LuckyNumber[3]))


"""
LuckyNumber[2:4] 列表分片，会等到原来列表的分片，即原列表的部分副本（copy）

"""
